package com.voilet.interview.databing;


import com.voilet.interview.BR;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

/**
 * Created by kan212 on 2019/4/13.
 */

public class ObSwordMan extends BaseObservable {

    public String name;
    public String level;

    public ObSwordMan(String name,String level){
        this.name = name;
        this.level = level;
    }
    @Bindable
    public String getName() {
        return name;
    }
    @Bindable
    public String getLevel() {
        return level;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    public void setLevel(String level) {
        this.level = level;
        notifyPropertyChanged(BR.level);
    }
}
